

import './services/user'
import './services/auth'
import './services/project'
import './services/task'
import './services/device'

import Mock from 'mockjs'


// 判断环境不是 prod 或者 preview 是 true 时，加载 mock 服务
if (import.meta.env.NODE_ENV !== 'production' || import.meta.env.VUE_APP_PREVIEW === 'true') {
  Mock.setup({
    timeout: 800 // setter delay time
  })
  console.log('mock mounted')
}
